package com.cskaoyan.javase._8loop;

import java.util.Scanner;

/**
 * 死循环
 *
 * @since 11:28
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true){
            System.out.println("请输入两个int整数:");
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            System.out.println("这两个数的最大值是:" + ((num1 > num2) ? num1 : num2));
        }

        // for (; ;) {
        //
        // }
    }
}
